<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			const value = uni.getStorageSync('userInfo')
			// alert(JSON.stringify(value))
			console.log(value);
			if (value.ID) {
				// this.userInfo = value
				// console.log(this.userInfo );
			}else{
				console.log('跳转登录');
				uni.reLaunch({url: '/pages/login/login'});
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
    /* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
    @import "@/uni_modules/uview-ui/index.scss";
</style>
